package com.quick.repository.mapper;

import com.quick.domain.Book;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @ClassName BookSlaveMapper
 * @Description TODO
 * @Author wangxin43
 * @Date 2018/7/3 下午2:16
 * @Version 1.0
 **/
@Repository
public class BookSlaveMapper {
    @Resource(name = "slaveSqlSessionTemplate")
    private SqlSessionTemplate sqlClient;

    public long save(Book book) {
        return sqlClient.insert("Book.save",book);
    }
}
